<template>
  <div>
    <div style="margin-top:20px">
      <span style="font-size:22px;    color: #9aa8d4;">统计数据 </span>
      <span style="font-size:20px;    color:#404d69;"> Statistics Data</span>
    </div>
    <div class="box">
      <div class="item" v-for="(item,index) in items" :key="index">
        <div>

          <img :src="item.img" style="width:40px;height:40px" alt="">
        </div>
        <div class="str">
          <div class="top">{{item.num}}</div>
          <div class="bottom">{{item.str}}</div>
        </div>
      </div>
    </div>

    <div style="margin-top:20px">
      <span style="font-size:22px;    color: #9aa8d4;">大额订单Top </span>
      <span style="font-size:20px;    color:#404d69;"> Supper Orders</span>
    </div>
    <div class="table">
      <div class="table-content" v-for="(item,index) in table" :key="index">
        <div class="c" v-for="(items,index) in item" :key="index"><div>{{items}}</div></div>
      </div>
    </div>


  </div>
</template>

<script>
  export default {
    data() {
      return {
        items: [{
            img: '',
            num: '87.3',
            str: '订单总数(万)'

          },
          {
            img: '',
            num: '22.1',
            str: '销售总量'

          },
          {
            img: '',
            num: '92.9',
            str: '订单总数(万)'

          },
          {
            img: '',
            num: '30',
            str: '近十分钟新增订单'

          },
        ],
        table: [
          [
            '时间', '物品', '数量', '金额',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
          [
            '12-22', '物品1', '85', '567543',
          ],
        ]
      }
    }
  }

</script>

<style lang="scss" scoped>
  .box {
    width: 100%;
    height: 150px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    .item {
      width: 48%;
      height: 50%;
      display: flex;
      align-items: center;
      justify-content: space-around;

      .top {
        font-size: 32px;
        font-weight: 700;
        color: #fff;
      }

      .bottom {
        font-size: 12px;
        color: #b0c2f9;
        width: 60px;
      }
    }
  }
  .table{
    border: 1px solid #33416b;
    width: 100%;
    height: 100%;
    margin-top: 20px;
    font-size: 13px;
    
    .table-content{
      width: 100%;
      height: 50px;
      text-align: center;
      border-bottom: 1px solid #33416b;
      color: #9aa8d4;
      display: flex;
      justify-content: space-between;
      align-items: center;
      div{
      text-align: center;
      width: 80px;

      }
    }
  }


</style>
